package com.powernode.controller;

import com.powernode.domain.Order;
import com.powernode.feign.UserOrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本类用来演示:
 *
 * @Author 胡英俊
 * @Date 2022/7/18 22:21
 */
@RestController
public class UserController {
    @Autowired
    private UserOrderFeign feign;
    @GetMapping("")
    public Order findOrder(){
        Order orderById = feign.getOrderById(1);
        return orderById;
    }
}
